

from typing import Optional
from pydantic import BaseModel
# todo 定义基础请求类
class RequestModel(BaseModel):
    """  基础API 请求类 """
    # id: str
    id: Optional[int] = 0 #  不传为0



class ProductModel(BaseModel):
    fndCityId: Optional[str] = None #  不传为0
    porCityId: Optional[str] = None #  不传为0
    cntrType : Optional[str] = None #  不传为0



class OrdertModel(BaseModel):
    id:Optional[int] = 0 
    productId: Optional[str] = None
    payAccount: Optional[str] = None
    isPay : Optional[bool] = False
    cntrType: Optional[str] = "20GP"
 

